import { ApiProperty } from "@nestjs/swagger";
import { IsNotEmpty, IsString, Length } from "class-validator";

export class UpdatePasswordDto {
    @IsString()
    @IsNotEmpty()
    @Length(6, 20)
    @ApiProperty({ example: "password123", description: "new Password", minLength: 6, maxLength: 20 })
    newPassword: string;

    @IsString()
    @IsNotEmpty()
    @Length(6, 20)
    @ApiProperty({ example: "password123456", description: "old Password", minLength: 6, maxLength: 20 })
    oldPassword: string;
}
